package com.gelian.demo;

import android.os.Environment;

import java.io.File;
import java.util.Date;

public class AppConstant {
    public static final String PATH_DIR = Environment.getExternalStorageDirectory().getAbsolutePath()
            + File.separator + "gelian" + File.separator;


    public static final String LOG_PATH = PATH_DIR + "error_log" + File.separator;

    public static String getErrLogPath() {
        return LOG_PATH + new Date(System.currentTimeMillis()).toString() + ".txt";
    }

    public static final String PATCH_PATH = PATH_DIR + "patch" + File.separator;

    public static String getPatchPath() {
        return PATCH_PATH;
    }

    /**
     * eventbus使用的tag
     */
    public static final String NOTIFY_DEVICE_UI = "notifyDeviceUI";     //通知刷新设备界面

    //    public static final String NOTIFY_NEW_DEVICE_ONLINE = "notifyNewDeviceOnline"; //通知有新的设备加入网络
    public static final String REC_THROUGH_DATA = "recThroughData";     //收到透传
    public static final String REC_DEVICE_STATUS = "recDeviceStatus";     //收到设备传感器信息
    public static final String NOTIFY_UNBIND_DEVICE_UI = "notifyUnbindDeviceUI";     //通知刷新设备界面
    public static final String NOTIFY_SINGLE_DEVICE_UI = "notifySingleDeviceUI"; //通知刷新设备控制面板界面


    public static final String NOTIFY_NOTIFY_CENTER_UI = "NOTIFY_NOTIFY_CENTER_UI"; //通知刷新通知界面
    //    public static final String AUTO_LOGIN = "autoLogin";              //自动登录通知
    //    public static final String CHECK_DEVICESTATUS = "checkDeviceStatus";      //检查设备状态


}
